export default {
  date: {
    title: '回款金额统计',
    path: '/service/dw/statistics/received/period/daily', // /monthly | daily
    path_monthly: '/service/dw/statistics/received/period/monthly',
    x_axis: 'received_date',
    y_name: '回款金额',
    x_max_count: 20,
    labelText: '&nbsp;&nbsp;回款金额',
    icon: 'arrow-graph-up-right',
    axis_label: true,
    legend: false,
    lines: [{
      code: 'received_money',
      name: '回款金额',
      show_value: false,
      show: true,
      format: 'money',
      type: 'bar'
    }],
    fields: [{
      code: 'received_money',
      name: '回款金额'
    }, {
      code: 'received_date',
      name: '回款日期',
      vertical: false, // 竖排显示，用于标记在x轴上需要竖排显示的字段
      type: 'date'
    }, {
      code: 'received_count',
      name: '数量'
    }],
    grids: [{
      title: '迁徙统计',
      path: '/service/dw/statistics/cm',
      x_axis: 'statistics_date',
      post_data: {
        asset_tenantry_id: 'jy'
      },
      keys: {
        start_time: 'statistics_start_date',
        end_time: 'statistics_end_date'
      },
      axis_label: true,
      lines: [{
        code: 'today_transfer_balance_rate',
        name: '迁徙率',
        show_value: false,
        show: true,
        format: 'percent',
        type: 'line'
      } /*,{
        code: 'current_transfer_balance_rate',
        name: '累计迁徙率',
        show_value: false,
        show: true,
        format: 'percent',
        type: 'line'
      }
      , {
              code: 'current_transfer_balance',
              name: '累计迁徙金额',
              show_value: true,
              show: false,
              type: 'bar'
            }, {
              code: 'today_transfer_balance',
              name: '当日迁徙金额',
              show_value: true,
              show: false,
              attach: 1,
              type: 'bar'
            }*/
      ],
      fields: [{
        code: 'received_money',
        name: '回款金额'
      }, {
        code: 'statistics_date',
        name: '统计日期',
        type: 'date',
        type_ts: true
      }, {
        code: 'received_date',
        name: '回款日期',
        type: 'date'
      }]
    }]
  }
}
